package com.ruoyi.hqfinance.service.impl;

import com.ruoyi.hqfinance.domain.HqSettleSubject;
import com.ruoyi.hqfinance.mapper.HqSettleSubjectMapper;
import com.ruoyi.hqfinance.service.HqSettleSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqSettleSubjectServiceImpl implements HqSettleSubjectService {
    @Autowired
    private HqSettleSubjectMapper hqSettleSubjectMapper;

    @Override
    public List<HqSettleSubject> selectAll() {
        return hqSettleSubjectMapper.selectAll();
    }

    @Override
    public Boolean insert(HqSettleSubject hqSettleSubject) {
        return hqSettleSubjectMapper.insert(hqSettleSubject);
    }

    @Override
    public Boolean update(HqSettleSubject hqSettleSubject) {
        return hqSettleSubjectMapper.update(hqSettleSubject);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqSettleSubjectMapper.deleteById(id);
    }
}
